home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
cqa.zip
/
TLINKAPP.BCP
< prev
next >
Wrap
Text File
|
1991-04-01
|
1KB
|
31 lines
QUESTION: What is the proper command line for linking a Windows
application?
ANSWER: The syntax for tlink is:
tlink objfiles,exefile,mapfile,libfiles,deffile
You must always use the /Tw option to create a Windows exe
or DLL. Use /Twe or /Twd to specifically create a Windows
exe or DLL ] respectively. The last two options override
specifications in the DEF file.
There is a specific startup module to use with Windows exe's;
it is c0wx.obj. For DLL's it is c0dx.obj.
The required libraries are: import.lib, cwinx.lib, mathx.lib
and cx.lib. For DLL's the Windows library for small and
compact is cwinc.lib and for medium and large is cwinl.lib.
The last three libraries, cwinx.lib, mathx.lib, and cx.lib
must always be in this exact order.
NOTE: The libraries, emu.lib and fp87.lib will NEVER be used
in a Windows program. BC++ will take care of the floating-
point math automatically.
You will then have to run the Resource Compiler to fully
create a Windows exe.
For more info, consult pages 115-130 in the User's Guide on
linking for Windows)